package com.music.service.impl;
import com.music.mapper.FeedbackMapper;
import com.music.pojo.Feedback;
import com.music.service.FeedbackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FeedbackServiceImpl implements FeedbackService{
    @Autowired(required = false)
    private FeedbackMapper feedbackMapper;
    @Override
    public List<Feedback> findAllFeedback() {
        return feedbackMapper.findAllFeedback();
    }

    @Override
    public List<Feedback> findInfoTAndH_Feedback(Feedback feedback) {
        return feedbackMapper.findInfoTAndH_Feedback(feedback);
    }

    @Override
    public boolean addFeedback(Feedback feedback) {
        return feedbackMapper.addFeedback(feedback)>0;
    }

    @Override
    public boolean deleteFeedback(int[] ids) {
        return feedbackMapper.deleteFeedback(ids)>0;
    }

    @Override
    public boolean updateFeedback(Feedback feedback) {
        return feedbackMapper.updateFeedback(feedback)>0;
    }
}
